<template>
	<view>
		<view class="tui-mybg-box">
			<view class="tui-header-center">
				<view class="avatar">
					<image src="../../../static/Mine/5.png" class="tui-avatar"></image>
				</view>
				<view class="headerinfo">
					<view>
						<view class="headernickname">呢称</view>
						<view class="u-flex">
							<button class="bdphone">积分: 28</button>
						</view>
					</view>
					<view class="headernum">
						<image src="../../../static/Mine/de.png"></image>
						<text>明细</text>
					</view>
				</view>
			</view>
		</view>
		<view class="section2">
			<view class="section2_item">
				<view v-for="(item,index) in list" :key="index" class="section2_info">
					<view class="section2_text" :class="index==6 ?'section2_name' : ''">{{item.name}}</view>
					<image :src="item.icon" v-if="!item.sign_status"></image>
					<image :src="item.icon2" v-else></image>
					<view class="section2_text">{{item.point}}</view>
				</view>
			</view>
			<view class="section2_item">
				<view></view>
				<view class="section2_btn">己签到</view>
				<view></view>
			</view>
		</view>
		<view class="section3">
			<!-- <image src="../../../static/Mine/sign.png"></image> -->
		</view>
		<view class="section4">
			<view>己累计签到</view>
			<view class="section4_middle">
				<text class="section4_text">0</text>
				<!-- <image src="../../../static/Mine/bgh.png"><text class="section4_text">0</text></image>
				<image src="../../../static/Mine/bgh.png"><text class="section4_text">0</text></image>
				<image src="../../../static/Mine/bgh.png"><text class="section4_text">0</text></image>
				<image src="../../../static/Mine/bgh.png"><text class="section4_text">2</text></image> -->
				<text>天</text>
			</view>
			<view style="color: #999999;">据说连续签到第七天可获得超额积分，一定要坚持签到哦~~~</view>
		</view>
		<view class="section5">
			<view>
				<view>签到奖励</view>
				<view class="section5_time">2021-06-06</view>
			</view>
			<view>
				<text>+10.00</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						name: '第一天',
						icon: '../../../static/Mine/signstatus.png',
						icon2: '../../../static/Mine/signstatus2.png',
						sign_status: true,
						point: '+10'
					},
					{
						name: '第二天',
						icon: '../../../static/Mine/signstatus.png',
						icon2: '../../../static/Mine/signstatus2.png',
						sign_status: true,
						point: '+20'
					},
					{
						name: '第三天',
						icon: '../../../static/Mine/signstatus.png',
						icon2: '../../../static/Mine/signstatus2.png',
						sign_status: true,
						point: '+30'
					},
					{
						name: '第四天',
						icon: '../../../static/Mine/signstatus.png',
						icon2: '../../../static/Mine/signstatus2.png',
						sign_status: true,
						point: '+40'
					},
					{
						name: '第五天',
						icon: '../../../static/Mine/signstatus.png',
						icon2: '../../../static/Mine/signstatus2.png',
						sign_status: true,
						point: '+50'
					},
					{
						name: '第六天',
						icon: '../../../static/Mine/signstatus.png',
						icon2: '../../../static/Mine/signstatus2.png',
						sign_status: true,
						point: '+60'
					},
					{
						name: '奖励',
						icon: '../../../static/Mine/signstatus.png',
						icon2: '../../../static/Mine/signstatus2.png',
						sign_status: false,
						point: '+110'
					}
				],
				sign_status: true, //签到状态

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	page {
		background-color: #F5F5F5;
	}

	.tui-mybg-box {
		width: 100%;
		height: 220rpx;
		position: relative;
		background-color: #00C049;
		// border-radius: 0 0 10% 10%;

		.tui-header-center {
			// position: absolute;
			height: 90rpx;
			padding: 20rpx 0rpx 30rpx 30rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;

			.avatar {
				height: 110rpx;
				width: 110rpx;
				border-radius: 50%;
				padding: 4.5rpx;
				background-color: #FFFFFF;
				box-sizing: border-box;
				margin: 0 auto;
				box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);

				.tui-avatar {
					height: 100rpx;
					width: 100rpx;
					display: block;
					border-radius: 50%;
					box-shadow: 0rpx 5rpx 0rpx #FFFFFF inset;
				}
			}

			.headerinfo {
				// margin-left: 20rpx;
				color: #FFFFFF;
				display: flex;
				justify-content: space-between;
				align-items: center;

				.headernickname {
					font-size: 30rpx;
					font-weight: 400;
				}

				.u-flex {
					display: flex;
					align-items: center;
					padding-top: 10rpx;

					.bdphone {
						border-radius: 20rpx;
						width: 160rpx;
						height: 40rpx;
						background-color: #FF8500;
						color: #FFFFFF;
						font-size: 30rpx;
						line-height: 40rpx;
					}
				}

				.headernum {
					margin-left: 225rpx;
					padding-left: 30rpx;
					padding-right: 20rpx;
					// width: 35rpx;
					// height: 70rpx;
					background-color: #FFF;
					border-radius: 50rpx 0rpx 0rpx 50rpx;
					display: flex;
					justify-content: space-between;
					align-items: center;
					text-align: center;

					// align-items: ;
					image {
						width: 55rpx;
						height: 55rpx;
					}

					text {
						text-align: center;
						color: #ff9000;
						font-size: 28rpx;
						font-weight: 400;
					}
				}
			}
		}
	}

	.section2 {
		width: 85%;
		height: 350rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-evenly;
		align-items: center;
		border-radius: 20rpx;
		background-color: #fff;
		z-index: 999;
		top: 120rpx;
		position: absolute;
		margin: 20rpx;
		padding: 0rpx 40rpx;
	}

	.section2_item {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.section2_info {
		height: 200rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-around;

		.section2_text {
			font-size: 14rpx;
			color: #8A8886;
		}

		image {
			width: 50rpx;
			height: 50rpx;
		}
	}

	.section2_name {
		background-color: #FF8500;
		border-radius: 50rpx;
		width: 100%;
		text-align: center;
	}

	.section2_btn {
		width: 400rpx;
		height: 80rpx;
		background-color: #999999;
		border-radius: 50rpx;
		line-height: 80rpx;
		text-align: center;
		font-size: 32rpx;
		font-weight: 500;
		color: #fff;

	}

	.section3 {

		background-image: url('../../../static/Mine/sign.png');
		 // background-size: 20% 20%;
		// width: 400rpx;
		height: 1rpx;
		position: fixed;
		left: 50%;
		transform: translateX(-50%);
		-webkit-transform: translateX(-50%);
		-ms-transform: translateX(-50%);
		-moz-transform: translateX(-50%);
		-o-transform: translateX(-50%);
		bottom: 800rpx;
		z-index: 9;
	}
.section4{
	margin: 20rpx;
	margin-top: 300rpx;
	border-radius: 20rpx;
	background-color: #FFFFFF;
	padding: 0rpx 40rpx;
	display: flex;
	justify-content: space-around;
	flex-direction: column;
	align-items: center;
	height: 500rpx;
}
	.section4_middle {	
		display: flex;
		flex-direction: row;
		align-items: center;
		
		image {
			width: 60rpx;
			height: 160rpx;
		}
	}
.section4_text{
	background-image: url(../../../static/Mine/bgh.png);
	display: block;
	    top: -5rpx;
	    right: 18rpx;
	    position: absolute;
	    border-radius: 50%;
	    // border: 0.5px solid #00C049;
	    color: #FFF;
	    font-size: 28rpx;
}
.section5{
	display: flex;
	justify-content: space-between;
	// flex-direction: column;
	align-items: center;
	border-radius: 20rpx;
	background-color: #FFFFFF;
	padding: 20rpx 40rpx;
	margin: 20rpx;
}
.section5_time{
	margin-top: 10rpx;
}
</style>
